﻿@model CloudFranceTriple.Models.ForumSecuritySet
@{
    ViewBag.Title = String.Format("{0} - {1}", ViewBag.LabelForum, CloudFranceTriple.WebRole.Properties.Resources.ForumSecurityCreateTitle);
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@ViewBag.LabelForum - @CloudFranceTriple.WebRole.Properties.Resources.ForumSecurityCreateTitle</h1>
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>@ViewBag.LabelForum - @CloudFranceTriple.WebRole.Properties.Resources.ForumSecurityCreateTitle</legend>

                @Html.Hidden("ForumSet_Id")

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.SecurityRoleName
                </div>
                <div class="editor-field">
                    @Html.DropDownList("webpages_Roles_RoleId", String.Empty)
                    @Html.ValidationMessageFor(model => model.webpages_Roles_RoleId)
                </div>
                <br />
                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.SecurityRightLevel
                </div>
                <div class="editor-field">
                    @Html.ListBox("RightLevel")
                    @Html.ValidationMessageFor(model => model.RightLevel)
                </div>
                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate" />
                </p>
            </fieldset>
        }
        @Html.Partial("_BackToForumSecurityList")
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
    </section>
</div>
